import usePlugin from "../plugin";
import { useController } from "./useController";
import { useFetch } from "./useFetch";
import { useHandleOption } from "./useHandleOption";
import { useItemHandle } from "./useItemHandle";
import { useKeyboard } from "./useKeyboard";
import { useRightMenu } from "./useRightMenu";
// import { useVirtualScorll } from "./useVirtualScorll";
import { useVirtualScorll } from "./useVirtualScorll3";

export default ({ option, service }) => {
  const props = usePlugin([
    useController(),
    useKeyboard(),
    useItemHandle(),
    useHandleOption(option),
    useVirtualScorll(),
    useRightMenu(),
    useFetch(service)
  ] as any[]);
  return props;
};
